package com.greatmay.model;

import java.util.ArrayList;
import java.util.List;

public enum ProductStatus {
    NORMAL, TOP, INSALES, DISABLED;

    public String getDescription() {
        if (this == NORMAL) {
            return "一般";
        }
        if (this == TOP) {
            return "置顶";
        }
        if (this == INSALES) {
            return "促销";
        }
        if (this == DISABLED) {
            return "移除";
        }
        return "";
    }

    private static ArrayList<ProductStatus> valuesList = new ArrayList<ProductStatus>(4);
    static {
        valuesList.add(NORMAL);
        valuesList.add(TOP);
        valuesList.add(INSALES);
        valuesList.add(DISABLED);
    }
    public static List<ProductStatus> valuesList() {
        return valuesList();
    }
}
